// router/index.js
import { createRouter, createWebHistory } from 'vue-router'
import WatchDemo from '../components/WatchDemo.vue'

const routes = [
  {
    path: '/Watch',
    name: 'Watch',
    component: WatchDemo
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes // 必须是 routes，不是 routers 或其他名称
})

export default router // 确保正确导出